<?php
// No direct access.
defined('_JEXEC') or die;

JLoader::import('joomla.filesystem.file');

JHtml::_('behavior.framework', true);

$app				= JFactory::getApplication();
$doc				= JFactory::getDocument();
$templateparams		= $app->getTemplate(true)->params;
$config = JFactory::getConfig();

$bootstrap = explode(',', $templateparams->get('bootstrap'));
$jinput = JFactory::getApplication()->input;
$option = $jinput->get('option', '', 'cmd');

if (in_array($option, $bootstrap))
{
	// Load optional rtl Bootstrap css and Bootstrap bugfixes
	JHtml::_('bootstrap.loadCss', true, $this->direction);
}

$doc->addStyleSheet('http://fonts.googleapis.com/css?family=PT+Sans:400,700');
$doc->addStyleSheet('http://fonts.googleapis.com/css?family=Lobster');
$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/css/reset.css');
$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/css/style.css');
$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/lib/jquery.bxslider/jquery.bxslider.css');
$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/lib/fancy/source/jquery.fancybox.css?v=2.1.5');
$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/lib/fancy/source/helpers/jquery.fancybox-buttons.css?v=1.0.5');
$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/lib/fancy/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7');



JHtml::_('bootstrap.framework');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/lib/jquery.js', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/lib/swfobject.js', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/lib/jquery.bxslider/jquery.bxslider.js', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/lib/fancy/lib/jquery.mousewheel-3.0.6.pack.js', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/lib/fancy/source/jquery.fancybox.js?v=2.1.5', 'text/javascript');

$doc->addScript($this->baseurl . '/templates/' . $this->template . '/lib/fancy/source/helpers/jquery.fancybox-buttons.js?v=1.0.5', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/lib/fancy/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/lib/fancy/source/helpers/jquery.fancybox-media.js?v=1.0.6', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/js/cmmacae.js', 'text/javascript');



$svideoColumnHome = $this->countModules('videohome');

?>

<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" > <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" > <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" > <!--<![endif]-->
  <head>
    <meta charset="utf-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ProteusThemes d.o.o.">
	<jdoc:include type="head" />
	
	
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    
    <script type="text/javascript">

</script>
  </head>

  <body>
  
  
  <!-- FACEBOOK -->
  
  <div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1&appId=389128111194603";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
  
  
  
	<header>
		<div class="header">
			<div class="h">
				<div class="logo"></div>
				<div class="camara"></div>
			</div>
			
								
			
		</div><!-- fim header -->		
		<!--menu top-->
		<div class="menutop">
			<div class="wrap">
			<jdoc:include type="modules" name="topmenu" />
			
			<jdoc:include type="modules" name="search" />
			
			</div>				
		</div>
	</header>
			<!-- end menu top-->
			
		<div class="page">
			<div class="columnleft">
				<jdoc:include type="modules" name="mainmenu" />					
				
				<div class="climatempo">
					<!-- Widget Previs&atilde;o de Tempo CPTEC/INPE --><iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://www.cptec.inpe.br/widget/widget.php?p=3025&w=h&c=00649F&f=ffffff" height="200px" width="215px"></iframe><noscript>Previs&atilde;o de <a href="http://www.cptec.inpe.br/cidades/tempo/3025">MacaÃ©/RJ</a> oferecido por <a href="http://www.cptec.inpe.br">CPTEC/INPE</a></noscript><!-- Widget Previs&atilde;o de Tempo CPTEC/INPE -->
				</div>				
				<jdoc:include type="modules" name="secondmenu" />
				
				<jdoc:include type="modules" name="newsletter" />
				
				<jdoc:include type="modules" name="polls" />
				
				
																		
			</div><!-- fim columnleft -->
			
			<div class="columnright">
				<?php if( $_GET['Itemid'] !=206):?>	
					<jdoc:include type="modules" name="featurednews"/>
				<?php endif;?>	
				<jdoc:include type="component" />
				<jdoc:include type="message" />	
				
				<?php if( $_GET['Itemid'] !=206):?>	
					<jdoc:include type="modules" name="bannerhome" />				
					<jdoc:include type="modules" name="lastnews" />							
					
					<jdoc:include type="modules" name="menuinterno" />
					
					<jdoc:include type="modules" name="menuinternosub" />
					
					
					
					<?php if($svideoColumnHome) : ?>
					<jdoc:include type="modules" name="videohome" />				
					<!--div class="fb-like-box" 
					data-href="https://www.facebook.com/pages/C%C3%A2mara-Municipal-De-Maca%C3%A9-CMM/162304423963733" data-width="241" 
					data-height="362" data-colorscheme="light" data-show-faces="true" data-header="true" 
					data-stream="false" data-show-border="true"></div-->
					<?php endif;?>		
				
				<?php endif;?>									
			</div><!-- fim columnright -->
			<div class="footer">
				<h3>Mapa do Site</h3>
				<div class="camara first">
					<h4>Câmara</h4>
					<jdoc:include type="modules" name="camaramenu" />
				</div>
				<div class="camara">
					<h4>Vereadores</h4>
					<jdoc:include type="modules" name="vereadoresmenu" />
				</div>
				<div class="camara atividade">
					<h4>Atividade Legislativa</h4>
				<jdoc:include type="modules" name="atividademenu" />
				</div>
				<div class="camara">
					<h4>Comunicação</h4>
				<jdoc:include type="modules" name="comunicacaomenu" />
				</div>
				<div class="camara">
					<h4>Transparência</h4>
				<jdoc:include type="modules" name="transparenciamenu" />
				</div>
			</div><!-- fim footer -->
			
			
			<div class="endereco">
				<div>Endereço: Av. Rui Barbosa, 197 - Centro - Macaé/RJ <img class="separador" src="<?php echo JUri::base() ?>templates/<?php echo $this->template ;?>/img/separador.jpg" /> Cep: 27901-361  <img  class="separador" src="<?php echo JUri::base() ?>templates/<?php echo $this->template ;?>/img/separador.jpg" /> Tel.:(22)2796-7850</div>
				
				<ul class="segundo">
					<li>
						<a href="#" title="Facebook"><img  src="<?php echo JUri::base() ?>templates/<?php echo $this->template ;?>/img/iconFacebook32x32.jpg" /></a>
					</li>
					<li>
						<a href="#" title="Twitter"><img  src="<?php echo JUri::base() ?>templates/<?php echo $this->template ;?>/img/iconTwitter32x32.jpg" /></a>
					</li>
					<li>
						<a href="#" title="Youtube"><img  src="<?php echo JUri::base() ?>templates/<?php echo $this->template ;?>/img/iconYoutube32x32.jpg" /></a>
					</li>
					<li>
						<a href="#" title="E-mail"><img  src="<?php echo JUri::base() ?>templates/<?php echo $this->template ;?>/img/iconMail32x32.jpg" /></a>
					</li>
				</ul>
			</div><!-- fim endereco -->
			
			
			
		</div>
		
		<div class="copyright">
				<div class="copyBgLeft"></div>
				
				
				<div class="copyBgRight"></div>
				<div class="copyBgMiddle">
				<span>
					Copyright <br/>
					2013 - cmmacae.rj.gov.br - Todos os direitos reservados.
				</span>
				</div>
			</div><!-- fim page -->
	
	
	
	<script type="text/javascript">
        startList = function() {
        if (document.all&&document.getElementById) {
        navRoot = document.getElementById("menuDropDown");
        for (i=0; i<navRoot.childNodes.length; i++) {
        node = navRoot.childNodes[i];
        if (node.nodeName=="LI") {
        node.onmouseover=function() {
        this.className+=" over";
          }
          node.onmouseout=function() {
          this.className=this.className.replace
            (" over", "");
           }
           }
          }
         }

      
        }
        window.onload=startList;


        $('#menuinterno').html($('#menu').html());
		$('#menu').html('');
			
		$('.bxslider').bxSlider({
			  minSlides: 1,
			  maxSlides: 8,
			  auto: true,
			  slideWidth: 628,
			  slideMargin: 347,			  
			  captions: true
			});	  

		$(document).ready(function() {
			$(".fancybox-thumb").fancybox({
				prevEffect	: 'none',
				nextEffect	: 'none',
				helpers	: {
					title	: {
						type: 'over'
					},
					thumbs	: {						
						width	: 60,
						height	: 60,
						position : 'top'
					}
				}
			});


			
			
		});


			
		
		$('.fancybox-media').fancybox({
			openEffect  : 'none',
			closeEffect : 'none',
			helpers : {
				media : {}
			}
		});
    	
    </script>



	<jdoc:include type="modules" name="debug" />
  </body>
</html>

